package com.xbongbong.pro.script.pojo.dto;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;


@Setter
@Getter
@ToString
public class RepairInvoiceRelationMoneyDTO implements Serializable {

    private static final long serialVersionUID = 902081854584837209L;

    /**
     * 脚本执行校验码
     */
    @NotBlank(message = "校验码不能为空")
    private String xbbCode;

    /**
     * 公司id
     */
    @NotBlank(message = "公司id不能为空")
    private String corpid;

    /**
     *关系表主键id
     */
    @NotNull(message = "主键id不能为空")
    private Long relationId;

    /**
     * 修改的关系表中money
     */
    @NotNull(message = "修改金额不能为空")
    private Double money;

    /**
     * 业务类型
     */
    @NotNull(message = "业务类型不能为空")
    private Integer businessType;

    /**
     * id关系表和money映射，用于批量修复
     * "relateIdToMoneyMap":{
     *         "1827":200,
     *         "1826":100
     *     }
     */
    private Map<Long,Double> relateIdToMoneyMap;
}
